/**
 * @Author: An Bui
 * @Email: btan@tma.com.vn - anbuithien@gmail.com
 * @Date: Oct-31-2012 
 */

dojo.provide("webapp.iclifesize.getIclifesizeBase");
dojo.declare("webapp.iclifesize.getIclifesizeBase",
	[ICTouchAPI.webWidget,dojox.dtl._Templated],{
		
	/**
	 * create content 
	 */
	postCreate : function() {
		var that = this;
		alert("getIclifesize initialized");
		alert(that.webapp.fullControlApp);
		// create a full control application
		that.webapp.fullControlApp = new UIElements.ApplicationMode.FullControl({
			content: {
				name:	"webapp.iclifesize.getContainer",
				params:	{}
			}
		}, that.domContent);
		alert("getIclifesize passed");
	},
	
	/**
	 * destroy content 
	 */
	destroy : function() {
		this.webapp.fullControlApp.destroy();
		this.webapp.fullControlApp = null;
		this.inherited(arguments);
		alert("destroy getIclifesize passed");
	},
});
